<template>
  <router-view></router-view>
</template>

<script setup>
import { useStore } from 'vuex'
import { createNewStyle } from '@/utils/theme.js'
import { watchLangChange } from '@/utils/i18n'
const store = useStore()
const themeColor = store.getters.mainColor
createNewStyle(themeColor)
watchLangChange(() => {
  store.dispatch('user/getUserProfile')
})
</script>

<style></style>
